<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">




    <input type="hidden" value="{$row.id}" name="row[id]"/>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" data-rule="required" class="form-control" name="row[sort]" type="number" value="{$row.sort|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('provinceid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="provinceid form-control" name="row[provinceid]"  id="selectProvince"   >

                <option value="">请选择省份</option>
                {foreach name="provincelist" item="v"}
                <option value="{$v.id}"   {eq name="$row.provinceid" value="$v.id"}selected{/eq}  >{$v.name}</option>
                {/foreach}
            </select>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('cityid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="cityid form-control" name="row[cityid]"  id="selectCity"   >

                <option value="">请选择城市</option>
                {foreach name="citylist" item="v"}
                <option value="{$v.id}"   {eq name="$row.cityid" value="$v.id"}selected{/eq}  >{$v.name}</option>
                {/foreach}

            </select>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('areaid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="areaid form-control" name="row[areaid]"  id="selectArea"   >

                <option value="0">请选择区域</option>
                {foreach name="arealist" item="v"}
                <option value="{$v.id}"   {eq name="$row.areaid" value="$v.id"}selected{/eq}  >{$v.name}</option>
                {/foreach}
            </select>
        </div>
    </div>



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('brandid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="shopid form-control" name="row[brandid]"  id="selectBrand"   >

                <option value="0">请选择品牌</option>

                {foreach name="brandlist" item="v"}
                <option value="{$v.id}" {eq name="$row.brandid" value="$v.id"}selected{/eq}>{$v.name}</option>
                {/foreach}

            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('sbrandid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="sbrandid form-control" name="row[sbrandid]"  id="sbrandid"   >

                <option value="0">请选择车系</option>

                {foreach name="brandcarslist" item="v"}
                <option value="{$v.id}" {eq name="$row.sbrandid" value="$v.id"}selected{/eq}>{$v.name}</option>
                {/foreach}

            </select>
        </div>
    </div>




    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>





    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" data-rule="required" class="form-control" name="row[money]" type="text" value="{$row.money|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carkm')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carkm" data-rule="required" class="form-control" name="row[carkm]" type="text" value="{$row.carkm|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carnumdate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carnumdate" data-rule="required" class="form-control" name="row[carnumdate]" type="text" value="{$row.carnumdate|htmlentities}">
        </div>
    </div>



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('cartype')}:</label>
        <div class="col-xs-12 col-sm-8">





            <select class="express form-control" name="row[cartype]"     >
                <option value="" >请选择车身结构</option>
                <option value="客车" {eq name="$row.cartype" value="客车"}selected{/eq} >客车</option>
                <option value="货车" {eq name="$row.cartype" value="货车"}selected{/eq} >货车</option>
                <option value="三厢车" {eq name="$row.cartype" value="三厢车"}selected{/eq} >三厢车</option>
                <option value="两厢车" {eq name="$row.cartype" value="两厢车"}selected{/eq} >两厢车</option>
                <option value="旅行车" {eq name="$row.cartype" value="旅行车"}selected{/eq} >旅行车</option>
                <option value="皮卡" {eq name="$row.cartype" value="皮卡"}selected{/eq} >皮卡</option>
                <option value="MPV" {eq name="$row.cartype" value="MPV"}selected{/eq} >MPV</option>
                <option value="SUV" {eq name="$row.cartype" value="SUV"}selected{/eq} >SUV</option>
                <option value="掀背车" {eq name="$row.cartype" value="掀背车"}selected{/eq} >掀背车</option>
                <option value="软顶敞篷车" {eq name="$row.cartype" value="软顶敞篷车"}selected{/eq} >软顶敞篷车</option>
                <option value="硬顶敞篷车" {eq name="$row.cartype" value="硬顶敞篷车"}selected{/eq} >硬顶敞篷车</option>
                <option value="硬顶跑车" {eq name="$row.cartype" value="硬顶跑车"}selected{/eq} >硬顶跑车</option>
            </select>
        </div>
    </div>




    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carrate')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select class="carrate form-control" name="row[carrate]"     >
                <option value="" >请选择排放</option>
                <option value="国一" {eq name="$row.carrate" value="国一"}selected{/eq} >国一</option>
                <option value="国二" {eq name="$row.carrate" value="国二"}selected{/eq} >国二</option>
                <option value="国三" {eq name="$row.carrate" value="国三"}selected{/eq} >国三</option>
                <option value="国四" {eq name="$row.carrate" value="国四"}selected{/eq} >国四</option>
                <option value="国五" {eq name="$row.carrate" value="国五"}selected{/eq} >国五</option>
                <option value="国六" {eq name="$row.carrate" value="国六"}selected{/eq} >国六</option>
                <option value="欧一" {eq name="$row.carrate" value="欧一"}selected{/eq} >欧一</option>
                <option value="欧二" {eq name="$row.carrate" value="欧二"}selected{/eq} >欧二</option>
                <option value="欧三" {eq name="$row.carrate" value="欧三"}selected{/eq} >欧三</option>
                <option value="欧四" {eq name="$row.carrate" value="欧四""}selected{/eq} >欧四</option>
                <option value="欧五" {eq name="$row.carrate" value="欧五"}selected{/eq} >欧五</option>
                <option value="欧六" {eq name="$row.carrate" value="欧六"}selected{/eq} >欧六</option>
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carchange')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select class="carchange form-control" name="row[carchange]"     >
                <option value="" >请选择变速箱</option>
                <option value="自动档" {eq name="$row.carchange" value="自动档"}selected{/eq} >自动档</option>
                <option value="手动档" {eq name="$row.carchange" value="手动档"}selected{/eq} >手动档</option>

            </select>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carspl')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carspl" data-rule="required" class="form-control" name="row[carspl]" type="text" value="{$row.carspl|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('per')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[per]-normal"><input  name="row[per]" type="radio" value="L"  {$row.per == 'L' ? 'checked' :''}> L</label>
                <label for="row[per]-hidden"><input  name="row[per]" type="radio" value="T" {$row.per == 'T' ? 'checked' :''} > T</label>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carfuel')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select class="carfuel form-control" name="row[carfuel]"     >
                <option value="" >请选择燃料类型</option>
                <option value="汽油" {eq name="$row.carfuel" value="汽油"}selected{/eq} >汽油</option>
                <option value="柴油" {eq name="$row.carfuel" value="柴油"}selected{/eq}  >柴油</option>
                <option value="油电混合" {eq name="$row.carfuel" value="油电混合"}selected{/eq}  >油电混合</option>
                <option value="增程式" {eq name="$row.carfuel" value="增程式"}selected{/eq} >增程式</option>
                <option value="插电式混合动力" {eq name="$row.carfuel" value="插电式混合动力"}selected{/eq}  >插电式混合动力</option>
                <option value="纯电力" {eq name="$row.carfuel" value="纯电力"}selected{/eq}  >纯电力</option>
                <option value="氢燃料电池" {eq name="$row.carfuel" value="氢燃料电池"}selected{/eq}  >氢燃料电池</option>
                <option value="汽油+48V轻混系统" {eq name="$row.carfuel" value="汽油+48V轻混系统"}selected{/eq}  >汽油+48V轻混系统</option>
                <option value="油气混合" {eq name="$row.carfuel" value="油气混合"}selected{/eq}  >油气混合</option>

            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carpos')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select class="carpos form-control" name="row[carpos]"     >
                <option value="" >请选择座位</option>
                <option value="2座" {eq name="$row.carpos" value="2座"}selected{/eq} >2座</option>
                <option value="4座" {eq name="$row.carpos" value="4座"}selected{/eq} >4座</option>
                <option value="5座" {eq name="$row.carpos" value="5座"}selected{/eq} >5座</option>
                <option value="6座" {eq name="$row.carpos" value="6座"}selected{/eq} >6座</option>
                <option value="7座及以上" {eq name="$row.carpos" value="7座及以上"}selected{/eq}>7座及以上</option>
            </select>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('carcolor')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select class="carcolor form-control" name="row[carcolor]"     >
                <option value="" >请选择颜色</option>
                <option value="银灰色" {eq name="$row.carcolor" value="银灰色"}selected{/eq} >银灰色</option>
                <option value="深灰" {eq name="$row.carcolor" value="深灰"}selected{/eq}>深灰</option>
                <option value="黑色" {eq name="$row.carcolor" value="黑色"}selected{/eq}>黑色</option>
                <option value="白色" {eq name="$row.carcolor" value="白色"}selected{/eq}>白色</option>
                <option value="红色" {eq name="$row.carcolor" value="红色"}selected{/eq}>红色</option>
                <option value="蓝色" {eq name="$row.carcolor" value="蓝色"}selected{/eq}>蓝色</option>
                <option value="咖啡色" {eq name="$row.carcolor" value="咖啡色"}selected{/eq}>咖啡色</option>
                <option value="香槟色" {eq name="$row.carcolor" value="香槟色"}selected{/eq}>香槟色</option>
                <option value="黄色" {eq name="$row.carcolor" value="黄色"}selected{/eq}>黄色</option>
                <option value="紫色" {eq name="$row.carcolor" value="紫色"}selected{/eq}>紫色</option>
                <option value="绿色" {eq name="$row.carcolor" value="绿色"}selected{/eq}>绿色</option>
                <option value="橙色" {eq name="$row.carcolor" value="橙色"}selected{/eq}>橙色</option>
                <option value="粉红色" {eq name="$row.carcolor" value="粉红色"}selected{/eq}>粉红色</option>
                <option value="棕色" {eq name="$row.carcolor" value="棕色"}selected{/eq}>棕色</option>
                <option value="冰川白" {eq name="$row.carcolor" value="冰川白"}selected{/eq}>冰川白</option>
                <option value="银色" {eq name="$row.carcolor" value="银色"}selected{/eq}>银色</option>
                <option value="金色" {eq name="$row.carcolor" value="金色"}selected{/eq}>金色</option>
                <option value="其他" {eq name="$row.carcolor" value="其他"}selected{/eq}>其他</option>
            </select>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('special')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
                {foreach name="speciallist" item="v"}
                <label for="row[special]-{$key}"><input id="row[special]-{$key}"  name="row[special][]" type="checkbox" value="{$v}"  {in name="$v" value="$row.special" type="in"} checked {/in} >{$v}</label>

                {/foreach}

            </div>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('tel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tel" data-rule="required" class="form-control" name="row[tel]" type="text"  value="{$row.tel|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2"  >{:__('thumb')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="" class="form-control" size="50" name="row[thumb]" type="text" value="{$row.thumb|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>

    <div class="form-group" data-field="images">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('thumb_url')}</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[thumb_url]" type="text" value="{$row.thumb_url|htmlentities}" placeholder="组图可以直接从正文进行提取,可以为空">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-images"></ul>
        </div>
    </div>


    <div class="form-group" data-field="description">
        <label for="c-description" class="control-label col-xs-12 col-sm-2">{:__('content')}</label>
        <div class="col-xs-12 col-sm-8">

            <textarea id="c-content" class="form-control editor" name="row[content]" cols="30" rows="10">{$row.content|htmlentities}</textarea>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('isrecommand')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[isrecommand]-normal"><input  name="row[isrecommand]" type="radio" value="1"  {$row.isrecommand == 1 ? 'checked' :''}> 是 </label>
                <label for="row[isrecommand]-hidden"><input  name="row[isrecommand]" type="radio" value="0"  {$row.isrecommand == 0 ? 'checked' :''}>否</label>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('ischeck')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[ischeck]-normal"><input  name="row[ischeck]" type="radio" value="1" {$row.ischeck == 1 ? 'checked' :''}> 启用</label>
                <label for="row[ischeck]-hidden"><input  name="row[ischeck]" type="radio" value="0" {$row.ischeck == 0 ? 'checked' :''}> 禁用</label>
            </div>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[status]-normal"><input  name="row[status]" type="radio" value="1" {$row.status == 1 ? 'checked' :''}> 启用</label>
                <label for="row[status]-hidden"><input  name="row[status]" type="radio" value="0" {$row.status == 0 ? 'checked' :''}> 禁用</label>
            </div>
        </div>
    </div>





    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
